package object;

import java.sql.SQLOutput;

public class ObjectDemo {
    public static void main(String[] args) {
        String s1 = new String("lee");
        String s2 = new String("lee");
        System.out.println(s1.equals(s2));

        StringBuilder s3 = new StringBuilder("lee");
        StringBuilder s4 = new StringBuilder("lee");
        System.out.println(s3.equals(s4));

        System.out.println(s1.equals(s3));




        Point p1 = new Point(6,66);
        Point p2 = new Point(6,66);

        System.out.println(p1==p2);
        System.out.println(p1.equals(p2));






        Point p =new Point(6,66);
        System.out.println(p);
        System.out.println(p.toString());

    }
}
